<template>
    <h1>测试一下</h1>
</template>

<script>
import { create } from '@/api/user'
import {Message} from 'element-ui'
export default{
    data(){
        return{
            code: ''
        }
    },
    mounted(){
        this.code = this.$route.query.code;
        console.log(this.code)
        create(this.code).then(response=>{
            console.log(response)
            this.$router.push('/login')
            Message.success('激活成功，请登录')
        })
    }

}
</script>

<style>
</style>